package start.demo01.exceptiontest;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class Main {

    @Test
    public void t0(){
        List<String> names=new ArrayList<>();
        names.add("s");
        List<OneClass> rList = new ArrayList<>();
        names.forEach((name) -> rList.add((OneClass) null));
        for (OneClass oneClass : rList) {
            String name = oneClass.getName();
            System.out.println("name:"+name);
        }
    }
}


